<div class="row-fluid">
    <div class="box-bar-post border-last">
        <div class="bg-sitebar">
            <h1 class=""><?php echo $detail['News']['name'.LANGUAGE];?></h1>
        </div>
        <div class="clear-content"></div>
        <div class="row-fluid">
            <div class="ct_tt noidung-paddd"><?php echo $detail['News']['content'.LANGUAGE];?></div>
        </div>
    </div>
</div>
<div class="clear-content"></div>

<div class="row-fluid">
    <div class="box-bar-post border-last">
        <div class="bg-sitebar">
            <p class="">Tin liên quan</p>
        </div>
        <div class="clear-content"></div>
        <div class="row-fluid">
            <?php 
                if(!empty($tinlienquan)){
            ?>
                <table>
                    <tr>
                        <?php 
                            $dem = 0;
                            foreach($tinlienquan as $value){
                            if($dem % 2 == 0 && $dem != 0) echo '</tr><tr>';
                        ?>
                            <td align="left" valign="top">
                                <div class="box-new-list">
                                    <a href="<?php echo DOMAIN.'chi-tiet/'.$value['News']['link'];?>.html" title="<?php echo $value['News']['name'];?>">
                                        <img src="<?php echo DOMAIN;?>img/w150/<?php echo $value['News']['images'];?>" title="" alt=""/>
                                    </a>
                                    <a href="<?php echo DOMAIN.'chi-tiet/'.$value['News']['link'];?>.html" title="<?php echo $value['News']['name'];?>">
                                        <h3><?php echo shortDesc($value['News']['name'], 60);?></h3>
                                    </a>
                                    <div class="shortdes-new-list">
                                        <?php echo shortDesc($value['News']['shortdes'], 100);?>
                                    </div>
                                    <div class="clear-main"></div>
                                </div><!--end box-new-list-->  
                            </td>
                        <?php $dem ++;}?>
                    </tr>
                </table>
            <?php }else echo 'Đang cập nhật !';?>
        </div>
    </div>
    <?php if($this->Paginator->numbers()){?>
        <div style="overflow: hidden;">
            <div class="pagination">
                <?php
                    echo $this->Paginator->first('« Đầu');     
                    //echo $this->Paginator->prev('« Trước', null, null, array('class' => 'disabled')); 
                    echo $this->Paginator->numbers(
                        array(
                            'before' => null,
                            'after' => null,
                            
                			'tag' => 'span',
                            'class' => 'number',
                			'modulus' => '6',
                            'separator' => null,
                            'first' => 2,
                            'last' => 2,
                            'ellipsis' => '...',
                			'currentClass' => 'current',
                            'currentTag' => null
                		)
                    );
                    //echo $this->Paginator->next('Tiếp »'); 
                    echo $this->Paginator->last('Cuối »'); 
                    echo $this->Paginator->counter('Trang {:page}/{:pages}.');
                ?>
            </div>
        </div>  
    <?php }?>
</div>